<link  href="/stylesheets/tests.css" type="text/css" rel="stylesheet" media="screen">
<title>添加量表分类</title>
<p  class="smallNav">专业量表管理>>添加量表分类</p>
<style type="text/css" rel="stylesheet">
    form {
    margin: 0;
    }
    .editor {
    margin-top: 5px;
    margin-bottom: 5px;
    }
    .ke-content {
    font-family: Courier New;
    font-size: 12px;
    background-color: #ffffff;
}

  </style>
    <script type="text/javascript" charset="utf-8" src="/kindeditor/kindeditor.js"></script>
  <script type="text/javascript">
    KE.show({
        id : 'type_dscription',
        resizeMode :1,
        cssPath : '/kindeditor/examples/index.css',
        items : [
        'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
        ]
    });
  </script>
<div style="margin: 25px 0 10px 0">
<% form_for(:type, :url => { :action => "update_type" }, :html=>{:class=>"required-validate" ,:id=>"type_form"}) do |f| %>
  <%= tag(:input, :type => "hidden", :name => request_forgery_protection_token.to_s, 
                 :value => form_authenticity_token) %> 
    <b>分类名称:</b><%= f.text_field :name %><br/>
    <input type="hidden" name="type_id" value="<%=params[:id]%>" />
    <b>分类说明:</b><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <%= f.text_area :description, :style=>"width:350px;height:200px;visibility;" %><br/>
    <input type="button" name=""  style="margin-left:50px;"value="提交" onclick="add_type();">
  <% end %>
    <br />
</div>

<script>
function add_type(){
    var form1=document.getElementById("type_form");
    form1.submit();
}
</script>
